import {request} from "../../request";

export function getReceiptdetaillistById(id){
    return request({
        url:`/lswms/receiptdetaillist/${id}`,
        method:'get'
    })
}


export function getReceiptdetaillistList(data){
    return request({
        url:'/lswms/receiptdetaillist/page',
        method:'put',
        data:data
    })
}

export function putReceiptdetaillist(data){
    return request({
        url:'/lswms/receiptdetaillist',
        method:'put',
        data:data
    })
}
/* export function postReceiptdetaillist(data){
    return request({
        url:'/lswms/receiptdetaillist',
        method:'post',
        data:data
    })
} */
export function postReceiptdetaillist(data){
    return request({
        url:'/lswms/receiptdetaillist/receipt',
        method:'post',
        data:data
    })
}


export function deleteReceiptdetaillist(data){
    return request({
        url:`/lswms/receiptdetaillist`,
        method:'delete',
        data:data
    })
}
export function exportReceiptdetaillist(data){
    return request({
        url:`/lswms/receiptdetaillist/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function revoke(data) {
            return request({
                url:'/lswms/receiptdetaillist/revoke',
                method:'post',
                data:data
    })
}
